//
//  HZDiseaseModel.m
//  MyDoctor
//
//  Created by 黑眼圈 on 16/5/4.
//  Copyright © 2016年 heiyan. All rights reserved.
//

#import "HZDiseaseModel.h"

@implementation HZDiseaseModel


#pragma mark -
#pragma mark    KVC
+(instancetype)diseaseWithDict:(NSDictionary*)dict{
    
    HZDiseaseModel* model = [[HZDiseaseModel alloc]init];
    
    [model setValuesForKeysWithDictionary:dict];
    
    return model;
}


+(NSArray*)getdiseaseArray{
    
    NSString* path = [[NSBundle mainBundle]pathForResource:@"disease.plist" ofType:nil];
    
    NSArray* arr = [NSArray arrayWithContentsOfFile:path];
    
    NSMutableArray* arrM = [NSMutableArray array];
    
    for (NSDictionary* dict in arr) {
        
        HZDiseaseModel* model = [HZDiseaseModel diseaseWithDict:dict];
        
        [arrM addObject:model];
    }
    
    return arrM.copy;
}




@end
